﻿#pragma once

// 输入窗口
class InputBox: public CDialog {
    private: int mIntValue;         // 返回值，也是显示值
    private: UINT mMaxChars;        // 允许输入的最大字符数
    private: int mMaxValue;         // 最大值
    private: int mMinValue;         // 最小值
    private: CString mStringValue;  // 返回值(字符串)
    private: CString mTipText;      // 提示信息

    public: InputBox(int, UINT, int, int, CWnd*, LPCTSTR);
    public: InputBox(CWnd*, LPCTSTR);
    private: virtual void DoDataExchange(CDataExchange*);
    public: int GetIntValue();
    public: LPCTSTR GetStringValue();
    private: virtual BOOL OnInitDialog();
};
